home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / ltmf_120.lzh / LTMF_DEF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-26  |  3.4 KB  |  135 lines

  1. /* ------------------------------------------------------------------------- */
  2. /* ----- Let 'em Fly!   V 1.2 ----------- (c) 1991-93 by Oliver Scheel ----- */
  3. /* ------------------------------------------------------------------------- */
  4. /* ----- Module: ltmf_def.h   Definitions ---------------------------------- */
  5. /* ------------------------------------------------------------------------- */
  6.  
  7. /* #define LIGHT */
  8.  
  9. #define ETV_CRITIC
  10.  
  11. #define ENGLISH
  12.  
  13. /* ------------------------------------------------------------------------- */
  14.  
  15. void memwcpy(void *dest, void *src, size_t len);
  16.  
  17. #define memcpy    memwcpy
  18.  
  19. #define isspace(ch)    (ch == ' ')
  20.  
  21. #ifndef sgn
  22. #define sgn(x)    ((x) == 0 ? 0 : ((x) > 0 ? 1 : -1))
  23. #endif
  24.  
  25. /* #define AESVersion()    global[0] */
  26. #define AESVersion()    aes_version
  27. extern    int    aes_version;
  28.  
  29. /* ------------------------------------------------------------------------- */
  30.  
  31.                 /* --- ob_type ROOT ---    */
  32. #define MAGIC    0x8900        /* magic byte  *137*    */
  33. #define GLOBOFF    0x7100        /* Let 'em Fly! OFF    */
  34.                 /* --- ob_flags ROOT -- */
  35. #define NOFLY    0x1000        /* flying OFF        */
  36. #define SNAPIN    0x2000        /* snap in mode        */
  37. #define FRCCENT    0x4000        /* save position OFF    */
  38. #define CENTER    0x8000        /* dial already centerd    */
  39.  
  40.                 /* --- ob_type OBJ ---- */
  41. #define TKNEXT    0x1000        /* take next text    */
  42. #define SPECIAL    0x2000        /* special key (UNDO..)    */
  43. #define FLYER    0x4000        /* fly button        */
  44. #define EXAPPL    0x8000        /* EXAPPLBLK structure    */
  45. #define FLYALL    0x0100        /* everyth. is fly-able    */
  46. #define FLYNOCL    0x0200        /* never hide fly-button*/
  47.                 /* --- ob_flags OBJ --- */
  48. /*
  49. #define EXAPPL    0x0200        /* EXAPPLBLK structure    */
  50. #define EXEDIT    0x0400        /* extended editor OFF    */
  51. */
  52. #define KEYDIAL    0x0800        /* key dials OFF    */
  53. #define NODUPE    0x1000        /* supresses key-dupes    */
  54. /*
  55. #define FLYER    0x1000        /* fly button        */
  56. #define FLYALL    0x2000        /* everthing is flyable    */
  57. */
  58. /* ------------------------------------------------------------------------- */
  59.  
  60. #define MEMCUT    2048l
  61.  
  62. #define    MAXDIAL    6        /* number of possible dials    */
  63. #define MAXALPH    36        /* number of alpha keys        */
  64. #define MAXFKEY    10        /* number of function keys    */
  65. #define MAXKEYS    50        /* number of possible keys    */
  66. #define MAXUNDO    10        /* number of possible undo-aliases*/
  67. #define MAXHELP    2        /* number of possible help-aliases*/
  68. #define MAXOK    5        /* number of ok's        */
  69. #define MAXALCH    256        /* max len of alert string    */
  70.  
  71. #ifdef ETV_CRITIC
  72.     #define MAXICON    7    /* number of alert icons    */
  73. #else
  74.     #define MAXICON    4
  75. #endif
  76.  
  77. #define MAXCHAR 32        /* max len of string check    */
  78.  
  79. #define MAXHIST    20        /* number of history entries    */
  80. #define HISTLEN    40        /* character length of history    */
  81.  
  82. #define FMD_FORWARD    0x00
  83. #define FMD_BACKWARD    0x01
  84. #define FMD_TURN    0x02
  85.  
  86. #define DSAVE        0
  87. #define DRESTORE    1
  88.  
  89. /* ------------------------------------------------------------------------- */
  90.  
  91. typedef struct
  92. {
  93. /*    OBJECT    *tree;
  94. */    MFDB    dial,
  95.         mem;
  96.     VRECT    dpos,
  97.         mpos;
  98.     void    *flybuf;
  99.     long    msize;
  100. } DIALSAV;
  101.  
  102. typedef struct
  103. {
  104.     int    obj,
  105.         kobj,
  106.         chpos,
  107.         tlen;
  108. } KBDTAB;
  109.  
  110. typedef struct
  111. {
  112.     char    *text;
  113.     int    len;
  114. } ALIAS;
  115.  
  116. typedef struct
  117. {
  118.     long    id,
  119.         *ptr;
  120. } COOKJAR;
  121.  
  122. typedef struct
  123. {
  124.     long    cookie;
  125.     long    product;
  126.     int    version;
  127.     int    x, y, w, h;
  128. } VSCRINF;
  129.  
  130. /* ------------------------------------------------------------------------- */
  131.  
  132. extern    LTMFLY    letemfly;
  133.  
  134. /* ------------------------------------------------------------------------- */
  135.